package com.hicorp.segment.service.impl;

import com.hicorp.segment.mapper.LoginRecordMapper;
import com.hicorp.segment.pojo.po.LoginRecord;
import com.hicorp.segment.service.LoginRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginRecordServiceImpl implements LoginRecordService {
    @Autowired
    LoginRecordMapper loginRecordMapper;
    @Override
    public void insert(LoginRecord loginRecord) {
        loginRecordMapper.insert(loginRecord);
    }

    @Override
    public void logout(String username) {
        loginRecordMapper.logout(username);
    }
}
